473,416 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Disable Vertical Scroll Bars

is there any way to disable or lock vertical scroll bars on a browser
window? im a newbie and i just don't want them to appear on my screen.
sometimes they appear on IE but not on mozilla.

any ideas would be most appreciated.

Jul 20 '05 #1
3 16488
In article <40********@nntphost.cis.strath.ac.uk>,
dc************@cis.strath.ac.uk enlightened us with...
is there any way to disable or lock vertical scroll bars on a browser
window? im a newbie and i just don't want them to appear on my screen.
sometimes they appear on IE but not on mozilla.

any ideas would be most appreciated.


Is this for a site other people are going to look at?
If so, they might want to increase the font size so they can read it.
Making the scroll bars go away is a Bad Thing (tm) for accessibility
reasons. Some people don't have good eyesight and may need to increase
the font size to as large as it goes. This usually makes any "normal"
page have to scroll.

As to removing them from an open window, no. You can open a new window
with no scrollbars, but (see above) it's a Bad Idea (tm) for internet
sites.

If you meant you want your own personal browser to not show scollbars on
any page, I don't think you can do that. You could make a custom HTA
that didn't have them, in theory.

--
--
~kaeli~
I do whatever my Rice Krispies tell me to.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
kaeli wrote:
In article <40********@nntphost.cis.strath.ac.uk>,
dc************@cis.strath.ac.uk enlightened us with...
is there any way to disable or lock vertical scroll bars on a browser
window? im a newbie and i just don't want them to appear on my screen.
sometimes they appear on IE but not on mozilla.

any ideas would be most appreciated.

If you meant you want your own personal browser to not show scollbars on
any page, I don't think you can do that. You could make a custom HTA
that didn't have them, in theory.


Actually, it is possible to control things like scrollbars in your own
browser. Create a css file with something like:

body { overflow-x: hidden ! important; }

Then in Internet Explorer, go to Tools -> Internet Options,
Accessibility..., check "Format documents using my style sheet", then
Browse... and specify the css file created above. You will never get a
horizontal scrollbar on any Web page again.

And although I don't think Firefox exposes the functionality directly
(although it may in some Extension or other), you can achieve the same
effect in Firefox by editing <Firefox directory>/res/html.css and adding

body { overflow: -moz-scrollbars-vertical ! important; }

Although it doesn't appear to do what I think it should be doing, however it
does suppress horizontal scrollbars (in addition to doing odd things to the
vertical one). Also note that the res directory contains other css files
such as forms.css, which contains default CSS for all form elements. For
example, if you always want text inputs on forms to have a single pixel
black border, you can change:

input {
...
border: 2px inset ThreeDFace;
...
}

to

input {
...
border: 1px solid Black ! important;
...
}

By the way, I'm not recommending this, you could probably make a huge mess
of Mozilla/Firefox, in addition to possibly violating some copyrights I
didn't read very carefully.

Also, the procedures outlined above are precisely why you shouldn't rely on
your Web page rendering the same on anyone's computer other then your own.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #3
Grant Wagner wrote:
[...]
And although I don't think Firefox exposes the functionality directly
(although it may in some Extension or other), you can achieve the same
effect in Firefox by editing <Firefox directory>/res/html.css and adding

body { overflow: -moz-scrollbars-vertical ! important; }

[...]
By the way, I'm not recommending this, you could probably make a huge mess
of Mozilla/Firefox, in addition to possibly violating some copyrights I
didn't read very carefully.


That's why there is the possibility for
<profile_directory>/chrome/userContent.css
and the like.
PointedEars
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
0
by: David Pratt | last post by:
Hi. I am putting together a database application on Zope. I have built a pager for my records (20 per page) but do not want the browser scroll bars to reset to the top of the browser each time the...
3
by: AES/newspost | last post by:
Just been involved with a web site where clicking a button on the main page opened a second (or secondary) window intended to function like a dialog box in Apple GUI jargon. (The primary page was...
4
by: justdummy | last post by:
Hi, I am struggling with a problem for sometimes. I need to display a table in a html and if the height of the table goes beyond 200 px then a vertical scrollbar should alone appear without any...
0
by: Sachin | last post by:
How to match the look and feel of vertical scroll bar with the inbuilt vertical scroll bars of some controls like PrintPreviewControl, Rich Text box , etc. Their scroll bars look blue where the...
18
by: ~john | last post by:
Sorry if this is a dumb question buy my CSS is pretty bad... but how do I get text to center vertically within a div tag? Here's my code below... the text is displaying on the far top-right. I...
0
by: MrNobody | last post by:
I made a custom user control which is supposed to be my own little simple gui data table and I extend from UserControl and set it's autoscroll property to true yet as I draw outside the vertical...
4
by: Matthew Cox | last post by:
Hi, I've been searching the net all day today trying to figure out how one would accomplish what I originally thought would be a fairly straight forward and simple thing. The problem I'm trying...
1
by: newbie009 | last post by:
How can I disable horizontal scroll in textbox for FireFox? Right now 1 textbox has vertical scroll and other textbox has horizontal scroll. It only looks like this on FireFox but it looks ugly....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.